//---------------------------------------------------------------------------

#ifndef DPExpSCPHH
#define DPExpSCPHH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "DialPad.h"
#include "PHDS.h"
#include <ExtCtrls.hpp>
#include "PHEdit.h"
#include "PHLabel.h"
#include <Buttons.hpp>
#include "GrvSCPH1.h"
#include "DIALPAD.h"
#include "PHCombo.h"
//---------------------------------------------------------------------------
class TDPExpSCPH1 : public TDiPad
{
__published:	// IDE-managed Components
 PHLabel *PHLabel2;
 PHEdit *PHEdit2;
 TBitBtn *BitBtn1;
 TBitBtn *BitBtn2;
 PHLabel *PHLabel3;
 PHEdit *PHEdit3;
 PHLabel *PHLabel4;
 PHEdit *PHEdit4;
 PHLabel *PHLabel1;
 PHEdit *PHEdit1;
 TSpeedButton *SpeedButton25;
 TSpeedButton *SpeedButton1;
 TSpeedButton *SpeedButton2;
 TGroupBox *Recebimentos;
 PHLabel *PHLabel6;
 TSpeedButton *SpeedButton3;
 PHLabel *PHLabel7;
 PHLabel *PHLabel8;
 TSpeedButton *SpeedButton4;
 TSpeedButton *SpeedButton5;
 PHLabel *PHLabel9;
 TSpeedButton *SpeedButton6;
 PHLabel *PHLabel10;
 PHEdit *PHEdit10;
 TSpeedButton *SpeedButton7;
 PHEdit *PHEdit6;
 PHEdit *PHEdit7;
 PHEdit *PHEdit8;
 PHEdit *PHEdit9;
 TGroupBox *GroupBox1;
 PHLabel *PHLabel16;
 PHEdit *PHEdit16;
 PHLabel *PHLabel17;
 PHEdit *PHEdit17;
 PHLabel *PHLabel18;
 PHEdit *PHEdit18;
 PHLabel *PHLabel19;
 PHEdit *PHEdit19;
 TSpeedButton *SpeedButton8;
 TSpeedButton *SpeedButton9;
 TSpeedButton *SpeedButton10;
 TSpeedButton *SpeedButton11;
 PHLabel *PHLabel5;
 PHComboBox *PHComboBox1;
 void __fastcall BitBtn1Click(TObject *Sender);
 void __fastcall SpeedButton25Click(TObject *Sender);
 void __fastcall PHEdit2Enter(TObject *Sender);
 void __fastcall PHEdit2Exit(TObject *Sender);
 void __fastcall PHEdit3Enter(TObject *Sender);
 void __fastcall PHEdit3Exit(TObject *Sender);
 void __fastcall PHEdit4Exit(TObject *Sender);
 void __fastcall PHEdit4Enter(TObject *Sender);
 void __fastcall SpeedButton1Click(TObject *Sender);
 void __fastcall SpeedButton2Click(TObject *Sender);
 void __fastcall PHEdit2KeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
 void __fastcall PHEdit3KeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
 void __fastcall PHEdit4KeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
 void __fastcall PHEdit6Enter(TObject *Sender);
 void __fastcall PHEdit6Exit(TObject *Sender);
 void __fastcall PHEdit6KeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
 void __fastcall SpeedButton3Click(TObject *Sender);
 void __fastcall PHEdit7Enter(TObject *Sender);
 void __fastcall PHEdit7Exit(TObject *Sender);
 void __fastcall PHEdit7KeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
 void __fastcall SpeedButton4Click(TObject *Sender);
 void __fastcall PHEdit8Enter(TObject *Sender);
 void __fastcall PHEdit8Exit(TObject *Sender);
 void __fastcall PHEdit8KeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
 void __fastcall SpeedButton5Click(TObject *Sender);
 void __fastcall PHEdit9Enter(TObject *Sender);
 void __fastcall PHEdit9Exit(TObject *Sender);
 void __fastcall PHEdit9KeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
 void __fastcall SpeedButton6Click(TObject *Sender);
 void __fastcall PHEdit10Enter(TObject *Sender);
 void __fastcall PHEdit10Exit(TObject *Sender);
 void __fastcall PHEdit10KeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
 void __fastcall SpeedButton7Click(TObject *Sender);
 void __fastcall PHEdit16Enter(TObject *Sender);
 void __fastcall PHEdit16Exit(TObject *Sender);
 void __fastcall PHEdit17Enter(TObject *Sender);
 void __fastcall PHEdit17Exit(TObject *Sender);
 void __fastcall PHEdit18Enter(TObject *Sender);
 void __fastcall PHEdit18Exit(TObject *Sender);
 void __fastcall PHEdit19Enter(TObject *Sender);
 void __fastcall PHEdit19Exit(TObject *Sender);
 void __fastcall SpeedButton8Click(TObject *Sender);
 void __fastcall SpeedButton9Click(TObject *Sender);
 void __fastcall SpeedButton10Click(TObject *Sender);
 void __fastcall SpeedButton11Click(TObject *Sender);
 void __fastcall PHEdit16KeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
 void __fastcall PHEdit17KeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
 void __fastcall PHEdit18KeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
 void __fastcall PHEdit19KeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
private:	// User declarations
 void __fastcall ExecutaRecebimentos(void);
 void __fastcall GravaRecebimentos(TObject *Sender);
 void __fastcall ExecutaPagamentos(void);
 void __fastcall GravaPagamentos(TObject *Sender);
 void __fastcall ClassificaServicos(unsigned long Lancamento,unsigned long MesAno,double &ValorRecebido);
 void __fastcall AdicionaRegistro(unsigned int Data,
                                  int Cta_Debito,
                                  int Cta_Credito,
                                  int Contrapartida,
                                  int Conjunto,
                                  double Valor,
                                  unsigned long Historico,
                                  AnsiString Complemento);
 TGrvSCPH * GSCPH;
 bool GravouRec;
 bool GravouPag;
 TStringList *Nao_Encontrados;
public:		// User declarations
 __fastcall TDPExpSCPH1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TDPExpSCPH1 *DPExpSCPH1;
//---------------------------------------------------------------------------
#endif
